import request from '@/utils/request'

//查
export default {
  getOrder(pageNumber,pageSize,query) {
    return request({
      url: `/orderInfo/${pageNumber}/${pageSize}`,
      method: "get",
      headers: {
        isToken: true
      },
      params: query
    })
  },
//增
 save(data){
  return request({
    url:`/orderInfo`,
    method:"post",
    headers: {
      isToken: true
    },
    data: data
  })
},
//删
 deleteById(id){
  return request({
    url:`/orderInfo/${id}`,
    method:"delete",
    headers: {
      isToken: true
    }
  })
},
//改
 updateById(data) {
   return request({
     url: `/orderInfo`,
     method: "put",
     headers: {
       isToken: true
     },
     data: data
   })
 }
}



